import request from '@/util/request'

export function saveHistory(data) {
    return request({
        url: '/chat-history',
        method: 'post',
        data
    })
}


export function listHistory() {
    return request({
        url: '/chat-history',
        method: 'get',
    })
}

export function deleteHistory(id) {
    return request({
        url: `/chat-history/${id}`,
        method: 'delete',
    })
}


